package com.chentongwei.exception;

import com.chentongwei.enums.IBaseEnum;
import com.chentongwei.strategy.ExceptionStrategy;

/**
 * @author Tongwei.Chen 2018-3-1 17:36:22
 * @Description: 业务异常
 */
public class BussinessException extends ExceptionStrategy  {
    private static final long serialVersionUID = 1L;

    private IBaseEnum baseEnum;

    public BussinessException(IBaseEnum baseEnum) {
        this.baseEnum = baseEnum;
    }

    @Override
    public IBaseEnum resolverException() {
        return baseEnum;
    }

}